import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [{
  path: '/login',
  name: 'login',
  component: resolve => require(['@/views/login'], resolve)
},
{
  path: '/',
  name: 'login',
  component: resolve => require(['@/views/login'], resolve)
},
{
  path: '/home',
  name: 'home',
  component: resolve => require(['@/views/home'], resolve)
},
{
  path: '/my',
  name: 'my',
  component: resolve => require(['@/views/my'], resolve)
}
]
const router = new VueRouter({
  routes
})

export default router
